Calculating Relative Formula Mass